﻿@model dynamic

@{
    Script.Include("ShoppingCart.js").AtFoot();
}
     
<input type="button" value="Add Item" data-bind='click: addItem' prodId="12" product="Product 1" fieldName="open" price="1" />


<div data-bind="foreach: cart">
    <span data-bind="text: $data.price"></span>
</div>

<h1>Total: <span data-bind="text:total()"></span></h1>

@using (Script.Foot()) {
    <script src="http://ajax.aspnetcdn.com/ajax/knockout/knockout-2.2.1.js"></script>
}